#include <iostream>
using namespace std;


bool Palin(char word[],int s, int e)
{
	if (s >= e)
	{
		return false;
	}

	if (word[s] != word[e])
	{
		return false;
	}

	else
	{
		return word[s + 1] && word[e - 1];
	}
}


int main()
{

	char word[4] {o, t, t, o};

	cout << Palin(word, 0, 3) << endl << endl;

	system("pause");
	
}